<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file = "lianjie.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		Object ID = session.getAttribute("ID");
		String delete_sql = "delete from usermassage where ID = '" + ID +"'"; 
		try {
			stmt.executeUpdate(delete_sql);
		} catch (SQLException e) {
			out.println("错误提示：" + e.getMessage());
		} finally {
			stmt.close();
			conn.close();
		}
		out.print("删除成功");
		response.setHeader("Refresh", "2;URL=delete_student.jsp");
		%>
</body>
</html>